package com.tansun.easycare.rule.ruleproj.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.tansun.easycare.core.web.BaseController;

/**
 * 跳转规则模型管理action
 *
 * @author Lph
 */
@Controller
@RequestMapping(value = "/ruleProj")
public class RuleProjectConsoleAction extends BaseController {

    /**
     * 通过不同的模型编码来做跳转
     *
     * @param projectCode 规则项目编码
     * @param treeId      模型编码
     */
    @RequestMapping("ruleItemDispath")
    public String ruleItemDispath(HttpServletRequest request, HttpServletResponse response, String projectCode, String treeId, String isModify, String rankId) throws Exception {
    	//增加isModify参数  HX 20191128
        String url = "/ruleProj/" + treeId + "/index?projectCode=" + projectCode + "&modelName=" + treeId + "&isModify=" + isModify+ "&rankRelationId="+rankId;
        return "redirect:" + url;
    }
}
